/* login.css - 增强版 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "FangSong", "仿宋", STFangsong, serif, "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #e0f7fa 0%, #f8bbd0 50%, #bbdefb 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #000; /* 全局字体改为黑色 */
    font-size: 16px;
    font-weight: bold; /* 全局加粗 */
}

#loginDiv {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 40px 30px;
    width: 100%;
    max-width: 480px; /* 放大表单宽度以容纳“点击图片刷新” */
    text-align: center;
}

#loginDiv h1 {
    font-size: 32px; /* 标题放大 */
    margin-bottom: 24px;
    color: #1976d2;
    letter-spacing: 1.5px;
    font-weight: bold;
}

/* 表单元素整体放大 */
#loginForm p {
    margin: 20px 0;
    text-align: left;
    font-size: 18px; /* 标签和输入框统一放大 */
    font-weight: bold;
}

#loginForm label {
    display: inline-block;
    width: 90px;
    font-size: 18px;
    color: #000;
    font-weight: bold;
    vertical-align: top;
    line-height: 36px;
}

#loginForm input[type="text"],
#loginForm input[type="password"] {
    width: calc(100% - 100px);
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 18px;
    outline: none;
    transition: border-color 0.3s;
    font-weight: normal;
}

#loginForm input[type="text"]:focus,
#loginForm input[type="password"]:focus {
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

/* 验证码区域：增加宽度 + “点击图片刷新”文字 */
#captcha {
    width: 120px; /* 输入框略宽 */
    padding: 10px 12px;
    font-size: 18px;
}

#captchaImg {
    margin-left: 10px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    vertical-align: middle;
    cursor: pointer;
}

/* “点击图片刷新”文字样式 */
.captcha-tip {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
    vertical-align: middle;
    display: inline-block;
}

/* 记住我复选框 */
#remember {
    margin-right: 6px;
    transform: scale(1.2); /* 放大复选框 */
}

#remember + label {
    font-size: 16px;
    font-weight: normal;
}

/* 按钮样式：更醒目的蓝粉渐变 */
#loginForm .button {
    background: linear-gradient(to right, #2196f3, #e91e63);
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 8px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 100px;
}

#loginForm .button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

#loginForm .button:active {
    transform: translateY(0);
}

/* 错误提示 */
#errorMsg {
    margin-top: 12px;
    padding: 8px;
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    border-radius: 4px;
    font-size: 16px;
    text-align: left;
    font-weight: bold;
}

/* 响应式优化 */
@media (max-width: 520px) {
    #loginDiv {
        padding: 30px 20px;
        max-width: 420px;
    }

    #loginForm label {
        width: 80px;
        font-size: 16px;
    }

    #loginForm input[type="text"],
    #loginForm input[type="password"] {
        width: calc(100% - 90px);
    }

    #loginForm .button {
        font-size: 16px;
        padding: 10px 20px;
    }
}